﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<SinBiota.Model.Entities.DepositaryUnit>" %>
<%@ Import Namespace="Localization" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Strings.Details %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h2><%: Strings.DepositaryUnit %></h2>

    <div class="display-label"><%: Strings.Name %></div>
    <div class="display-field"><%: Model.Name %></div>

    <div class="display-label"><%: Strings.Records %></div>
    <table>
    <thead>
    <tr>
        <th> Id </th>
        <th> <%: Strings.Specimen %></th>
        <th> <%: Strings.Occurrence %></th>
    </tr>
    </thead>
    <% foreach (var record in Model.DepositaryUnitRecords)
{ %>
<tr>
    <td><%: record.UniqueId %></td>
    <td><%: record.Specimen.TaxonomicClassification.LegacyScientificName() %></td>
    <td><%: Html.ActionLink(record.Specimen.Occurrence.Id.ToString(), "Details", "Occurrence", new {id = record.Specimen.Occurrence.Id}, null) %></td>
</tr>
        
<% } %>
</table>
    <div class="small button radius">
        <%: Html.ActionLink(Strings.BackToList, "Index") %>
    </div>

</asp:Content>

